package comi.gsi;

import android.content.Context;

import comi.gsi.command.CommandManager;
import comi.gsi.view.IFrame;

public abstract class ControlloreBase {

	protected IFrame frame;
	protected CommandManager commandManager;

	public IFrame getFrame() {
		return frame;
	}

	public void setFrame(final IFrame frame) {
		this.frame = frame;
	}

	public void setCommandManager(final CommandManager commandManager) {
		this.commandManager = commandManager;
	}

	public CommandManager getCommandManager() {
		if (commandManager == null) {
			commandManager = CommandManager.getIstance();
		}
		return commandManager;
	}

	/**
	 * Controlla se esiste sul db l'utente guest, altrimenti lo crea
	 */
	public abstract void setStartUtenteLogin(final Context context);

	/**
	 * Verifica presenza del db
	 */
	public abstract void verificaPresenzaDb();

}
